Skip to content

Remove the deprecated getViewCSS() compatibility bridge - #4211

Draft
vogella wants to merge 1 commit into
eclipse-platform:masterfrom
vogella:css-drop-viewcss-bridge
Draft

Remove the deprecated getViewCSS() compatibility bridge#4211
vogella wants to merge 1 commit into
eclipse-platform:masterfrom
vogella:css-drop-viewcss-bridge

Conversation

@vogella

@vogella vogella commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Removes the deprecated getViewCSS() default method from CSSEngine. It was added in #4122 as a bridge for the PDE CSS spy, which at the time still went through the W3C cascade accessor, and was always meant to be temporary.

Nothing in this repository calls it: the org.eclipse.e4.ui.css.core.engine package is not exported to any PDE bundle, so the spy reached it reflectively rather than at compile time.

The current spy no longer needs it either. CssEngineCompat in org.eclipse.pde.spy.css (eclipse-pde#2396, merged) gates on hasMethod(CSSEngine.class, "computeStyle", Element.class, String.class) and takes the computeStyle path on any engine that has it, so the getViewCSS branch is already unreachable on a reworked platform. eclipse-pde#2399 deletes that reflection entirely, but this removal does not depend on it.

Local verification: org.eclipse.e4.ui.css.core and org.eclipse.e4.ui.css.swt build clean and both suites are green (128 css.core, 210 css.swt with 9 skipped).

Kept as a draft for now so it can follow eclipse-pde#2399.

The whole CSS engine is internal API

@github-actions

github-actions Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Test Results

   855 files  ±  0     855 suites  ±0   45m 32s ⏱️ - 9m 4s
 8 120 tests ±  0   7 877 ✅ ± 0  243 💤 ± 0  0 ❌ ±0 
20 131 runs   - 131  19 510 ✅  - 98  621 💤  - 33  0 ❌ ±0 

Results for commit 1caadc8. ± Comparison against base commit 51efa85.

♻️ This comment has been updated with latest results.

The bridge was added when computeStyle(Element, String) replaced the W3C
cascade accessor, so that the PDE CSS spy kept working while it still
called getViewCSS().getComputedStyle(...). The spy no longer calls it,
so its last known caller is gone.

The org.eclipse.e4.ui.css.core.engine package is not exported to any PDE
bundle, so nothing in the SDK referenced the method at compile time; the
spy reached it reflectively.
@vogella
vogella force-pushed the css-drop-viewcss-bridge branch from db37642 to 1caadc8 Compare July 28, 2026 14:25
@vogella
vogella marked this pull request as ready for review July 28, 2026 14:25
@vogella

vogella commented Jul 29, 2026

Copy link
Copy Markdown
Contributor Author

Something for early next release.

@vogella
vogella marked this pull request as draft July 29, 2026 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant